package cn.edu.wzut.mbp.mapper;

import cn.edu.wzut.mbp.entity.SysRole;
import cn.edu.wzut.mbp.entity.SysUserExt;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wzut
 * @since 2022-04-27
 */
@Mapper
public interface SysRoleMapper extends BaseMapper<SysRole> {

    @Select({
            "select * from sys_role ",
            "where ROLE_NAME like #{roleName,jdbcType=VARCHAR}"
    })
    List<SysRole> getByRoleName(String roleName);
}
